/**
 * 
 */
package p_01;

import java.util.Scanner;
/**
 * @author GuilhermePedrosa
 *
 */
public class main {

	/**
	 * @param args
	 */
	private Grid grid;
	private Grid result;
	private int testcases = 0;
	private int size = 0;

	private Scanner in = new Scanner(System.in);

	private void readInput (){
		String line = "";
		String[] tokens;
		testcases = in.nextInt();
		size = in.nextInt();
		grid = new Grid();
		while (in.hasNext()){
			line = in.nextLine();
			tokens = line.split(" ");
			grid.setStartPos(new Pair<Integer, Integer>(Integer.parseInt(tokens[0]), Integer.parseInt(tokens[1])));
			
		}
	}
	private void work (){
		readInput();
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
